import { herinRequist } from "../http.js";
const Supervision = {
	getAuditList(data){
		return herinRequist({ url: '/pc/circular-audit-list', method: 'GET', data });
	},
	getReportList(data){
		return herinRequist({ url: '/pc/circular-report-list', method: 'GET', data });
	},
	getReportDetail(id){
		return herinRequist({ url: '/pc/circular-report-detail', method: 'GET', data:{id} });
	},
	getAuditDetail(id){
		return herinRequist({ url: '/pc/circular-audit-detail', method: 'GET', data:{id} });
	},
	postCircularReport(data){
		return herinRequist({ url: '/pc/circular-report', method: 'POST', data , contentType:'application/json'});
	},
	postCircularReportCancel(data){
		return herinRequist({ url: '/pc/circular-report-cancel', method: 'POST', data , contentType:'application/json'});
	},
	postCircularAudit(data){
		return herinRequist({ url: '/pc/circular-audit', method: 'POST', data , contentType:'application/json'});
	},
	getDepartmentFirst(){
		return herinRequist({ url: '/admin/department-first', method: 'GET' });
	},
	getRecordList(data){
		return herinRequist({ url: '/app/record-list', method: 'GET',data });
	},
	getRecordDetail(id){
		return herinRequist({ url: '/app/record-detail', method: 'GET',data:{id} });
	},
	postServiceReport(data){
		return herinRequist({ url: '/pc/service-report', method: 'POST',data, contentType:'application/json'});
	},
	getServiceList(data){
		return herinRequist({ url: '/pc/service-report-list', method: 'GET',data});
	},
	getValueList(data){
		return herinRequist({ url: '/pc/value-report-list', method: 'GET',data});
	},
	getSalaryList(data){
		return herinRequist({ url: '/pc/salary-report-list', method: 'GET',data});
	},
	postValueReport(data){
		return herinRequist({ url: '/pc/value-report', method: 'POST',data, contentType:'application/json'});
	},
	postSalaryReport(data){
		return herinRequist({ url: '/pc/salary-report', method: 'POST',data, contentType:'application/json'});
	},
	getDetail(id,val){
		return herinRequist({ url: val, method: 'GET',data:{ id }});
	},
	postReport(id,val){
		return herinRequist({ url: val, method: 'POST',data:{ id }});
	},
	getCaseList(data){
		return herinRequist({ url: '/pc/case-list', method: 'GET',data});
	},
	getCaseDetail(id){
		return herinRequist({ url: '/pc/case-detail', method: 'GET',data:{ id }});
	},
	postCaseAudit(data){
		return herinRequist({ url: '/pc/case-audit', method: 'POST',data, contentType:'application/json'});
	},
	
}

export default Supervision;
